import Mock from "mockjs"

let List = []
export default {
  getStatisticalData: () => {
    for (let i = 0; i < 7; i++) {
      List.push({
        苹果: Mock.Random.float(100, 8000, 0, 0),
        VIVO: Mock.Random.float(100, 8000, 0, 0),
        OPPO: Mock.Random.float(100, 8000, 0, 0),
        魅族: Mock.Random.float(100, 8000, 0, 0),
        三星: Mock.Random.float(100, 8000, 0, 0),
        小米: Mock.Random.float(100, 8000, 0, 0)
      })
    }
    return {
      code: 200,
      data: {
        videoData: [
          { name: "小米", value: 2999 },
          { name: "VIVO", value: 1500 },
          { name: "OPPO", value: 1999 },
          { name: "苹果", value: 5999 },
          { name: "魅族", value: 2200 },
          { name: "三星", value: 4500 },
        ],
        userData: [
          { date: "周一", new: 5, active: 200 },
          { date: "周二", new: 10, active: 500 },
          { date: "周三", new: 12, active: 550 },
          { date: "周四", new: 60, active: 800 },
          { date: "周五", new: 65, active: 550 },
          { date: "周六", new: 53, active: 770 },
          { date: "周日", new: 33, active: 170 },
        ],
        orderData: {
          date: ["20240901", "20240902", "20240903", "20240904", "20240905", "20240906", "20240907"],
          data: List
        },
        tableData: [
          { name: "oppo", todayBuy: 500, monthBuy: 3500, totalBuy: 29000 },
          { name: "vivo", todayBuy: 300, monthBuy: 2200, totalBuy: 24000 },
          { name: "苹果", todayBuy: 800, monthBuy: 4500, totalBuy: 65000 },
          { name: "小米", todayBuy: 1200, monthBuy: 6500, totalBuy: 45000 },
          { name: "三星", todayBuy: 370, monthBuy: 2000, totalBuy: 34000 },
          { name: "魅族", todayBuy: 350, monthBuy: 3000, totalBuy: 22000 },
        ]
      }
    }
  }
}